<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">
	项目投入经费（单位：万元）
</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1"  id="budgetsMsg">
	<tr>
		<td  nowrap align="right" width="20%">项目投资总额：</td>
		<td width="80%"><input type="text" style="text-align: right;width: 100px"
			name="budgets/input_total" id="source_total"
			class="gray required valueEqual:source_total:total_total_0"  disabled
			label="项目投入经费-->项目投资总额" 
			value="<x:out select="$xmlData/data/budgets/input_total" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
	</tr>
</table>
<br/>
<div class="t_bar">
	<span class="color_red">*</span>项目投资资金来源（单位：万元）
</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1"  id="budgetsMsg1">
	<tr align="center" class="li_2">
		<td rowspan="2">自有资金</td>
		<td rowspan="2">银行贷款</td>
		<td colspan="4">已获政府资助</td>
		<td rowspan="2" >其他资金</td>
	</tr>
	<tr align="center" class="li_2">
		<td>国家</td>
		<td>省级</td>
		<td>市级</td>
		<td>区级</td>
	</tr>
	<tr class="li_1">
		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/own_fund_over" id="source_own_over"
			onchange="countFundAuto('source_','own_over,bank_over,other_over,country_over,provincial_over,city_over,area_over','total');"
			class="required" label="项目投资资金来源-->自有资金"
			value="<x:out select="$xmlData/data/budgets/own_fund_over" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/bank_fund_over" id="source_bank_over"
			onchange="countFundAuto('source_','own_over,bank_over,other_over,country_over,provincial_over,city_over,area_over','total');"
			class="required" label="项目投资资金来源-->银行贷款"
			value="<x:out select="$xmlData/data/budgets/bank_fund_over" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

	

		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/country_fund_over" id="source_country_over"
			onchange="countFundAuto('source_','own_over,bank_over,other_over,country_over,provincial_over,city_over,area_over','total');"
			class="required" label="项目投资资金来源-->已获政府资助（国家）"
			value="<x:out select="$xmlData/data/budgets/country_fund_over" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/provincial_fund_over" id="source_provincial_over"
			onchange="countFundAuto('source_','own_over,bank_over,other_over,country_over,provincial_over,city_over,area_over','total');"
			class="required" label="项目投资资金来源-->已获政府资助（省级）"
			value="<x:out select="$xmlData/data/budgets/provincial_fund_over" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/city_fund_over" id="source_city_over"
			onchange="countFundAuto('source_','own_over,bank_over,other_over,country_over,provincial_over,city_over,area_over','total');"
			class="required " label="项目投资资金来源-->已获政府资助（市级）"
			value="<x:out select="$xmlData/data/budgets/city_fund_over" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/area_fund_over" id="source_area_over"
			onchange="countFundAuto('source_','own_over,bank_over,other_over,country_over,provincial_over,city_over,area_over','total');"
			class="required" label="项目投资资金来源-->已获政府资助（区级）"
			value="<x:out select="$xmlData/data/budgets/area_fund_over" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		
	<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/other_fund_over" id="source_other_over"
			onchange="countFundAuto('source_','own_over,bank_over,other_over,country_over,provincial_over,city_over,area_over','total');"
			class="required " label="项目投资资金来源-->其他资金"
			value="<x:out select="$xmlData/data/budgets/other_fund_over" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>	
			
	</tr>

</table>

<br/>
<div class="t_bar">
	<span class="color_red">*</span>项目投资支出情况
</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="fundAdds">

	<tr >
		<td class="TblHead" align="center"  width="20%">支出科目</td>
		<td class="TblHead" align="center" width="20%">支出金额（万元）</td>
		<td class="TblHead" align="center" width="60%" >支出说明</td>
	</tr>
	
	<tr>
		<td align="center" >合计</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[00]@invest_code" value="00" /> <input
			type="hidden" name="budget/invest_detail/invest[00]/name" value="合计" />
			<input type="text" name="budget/invest_detail/invest[00]/total_total"
			id="total_total_0" class="gray" disabled label="项目投资支出情况-->合计"
			style="text-align: right; width: 100px;"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/total_total" />" />
		</td>
		<td><input type="text" style="width: 90%" name="budget/invest_detail/invest[00]/user_desc"  maxlength="200"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/user_desc" />"/></td>
	</tr>

	<tr>
		<td align="left" >1、设备材料费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[01]@invest_code" value="01" /> <input
			type="hidden" name="budget/invest_detail/invest[01]/name"
			value="1、设备材料费" /> <input type="text"
			style="text-align: right; width: 100px"  
			name="budget/invest_detail/invest[01]/total_total" id="total_total_1" label="项目投资支出情况-->设备材料费"
			onchange="countFundAuto('total_','total_1,total_2,total_3,total_4,total_5,total_6,total_7,total_8,total_9,total_10','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_total" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td><input type="text" style="width: 90%" name="budget/invest_detail/invest[01]/user_desc"  maxlength="200"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/user_desc" />"/></td>
		
	</tr>
	<tr>
		<td align="left" >2、展位舞台搭建费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[02]@invest_code" value="02" /> <input
			type="hidden" name="budget/invest_detail/invest[02]/name"
			value="2、展位舞台搭建费" /> <input type="text"
			style="text-align: right; width: 100px" 
			name="budget/invest_detail/invest[02]/total_total" id="total_total_2" label="项目投资支出情况-->展位舞台搭建费"
			onchange="countFundAuto('total_','total_1,total_2,total_3,total_4,total_5,total_6,total_7,total_8,total_9,total_10','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/total_total" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td><input type="text" style="width: 90%" name="budget/invest_detail/invest[02]/user_desc"  maxlength="200"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/user_desc" />"/></td>
		
	</tr>
	<tr>
		<td align="left" >3、广告宣传费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[03]@invest_code" value="03">
			<input type="hidden" name="budget/invest_detail/invest[03]/name"
			value="3、广告宣传费"> <input type="text"
			name="budget/invest_detail/invest[03]/total_total" 
			style="text-align: right; width: 100px;" id="total_total_3"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','total_1,total_2,total_3,total_4,total_5,total_6,total_7,total_8,total_9,total_10','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/total_total" />" />
		</td>
		
		<td><input type="text" style="width: 90%" name="budget/invest_detail/invest[03]/user_desc"  maxlength="200"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/user_desc" />"/></td>
	</tr>
	<tr>
		<td align="left" >4、场租费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[04]@invest_code" value="04">
			<input type="hidden" name="budget/invest_detail/invest[04]/name"
			value="4、场租费"> <input type="text"
			name="budget/invest_detail/invest[04]/total_total" 
			style="text-align: right; width: 100px;" id="total_total_4"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','total_1,total_2,total_3,total_4,total_5,total_6,total_7,total_8,total_9,total_10','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/total_total" />" />
		</td>
		
		<td><input type="text" style="width: 90%" name="budget/invest_detail/invest[04]/user_desc"  maxlength="200"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/user_desc" />"/></td>
	</tr>
	<tr>
		<td align="left" >5、水电费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[05]@invest_code" value="05">
			<input type="hidden" name="budget/invest_detail/invest[05]/name"
			value="5、水电费"> <input type="text"
			name="budget/invest_detail/invest[05]/total_total" 
			style="text-align: right; width: 100px;" id="total_total_5"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','total_1,total_2,total_3,total_4,total_5,total_6,total_7,total_8,total_9,total_10','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/total_total" />" />
		</td>
		
		<td><input type="text" style="width: 90%" name="budget/invest_detail/invest[05]/user_desc"  maxlength="200"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/user_desc" />"/></td>
	</tr>
	<tr>
		<td align="left" >6、会议差旅费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[06]@invest_code" value="06">
			<input type="hidden" name="budget/invest_detail/invest[06]/name"
			value="6、会议差旅费"> <input type="text"
			name="budget/invest_detail/invest[06]/total_total" 
			style="text-align: right; width: 100px;" id="total_total_6"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','total_1,total_2,total_3,total_4,total_5,total_6,total_7,total_8,total_9,total_10','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/total_total" />" />
		</td>
		
		<td><input type="text" style="width: 90%" name="budget/invest_detail/invest[06]/user_desc"  maxlength="200"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/user_desc" />"/></td>
	</tr>
	<tr>
		<td align="left" >7、人员费用</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[07]@invest_code" value="07">
			<input type="hidden" name="budget/invest_detail/invest[07]/name"
			value="7、人员费用"> <input type="text"
			name="budget/invest_detail/invest[07]/total_total" 
			style="text-align: right; width: 100px;" id="total_total_7"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','total_1,total_2,total_3,total_4,total_5,total_6,total_7,total_8,total_9,total_10','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/total_total" />" />
		</td>
		
		<td><input type="text" style="width: 90%" name="budget/invest_detail/invest[07]/user_desc"  maxlength="200"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/user_desc" />"/></td>
	</tr>
	<tr>
		<td align="left" >8、管理费用</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[08]@invest_code" value="08">
			<input type="hidden" name="budget/invest_detail/invest[08]/name"
			value="8、管理费用"> <input type="text"
			name="budget/invest_detail/invest[08]/total_total" 
			style="text-align: right; width: 100px;" id="total_total_8"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','total_1,total_2,total_3,total_4,total_5,total_6,total_7,total_8,total_9,total_10','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/total_total" />" />
		</td>
		
		<td><input type="text" style="width: 90%" name="budget/invest_detail/invest[08]/user_desc"  maxlength="200"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/user_desc" />"/></td>
	</tr>
	<tr>
		<td align="left" >9、应交税费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[09]@invest_code" value="09">
			<input type="hidden" name="budget/invest_detail/invest[09]/name"
			value="9、应交税费"> <input type="text"
			name="budget/invest_detail/invest[09]/total_total" 
			style="text-align: right; width: 100px;" id="total_total_9"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','total_1,total_2,total_3,total_4,total_5,total_6,total_7,total_8,total_9,total_10','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/total_total" />" />
		</td>
		
		<td><input type="text" style="width: 90%" name="budget/invest_detail/invest[09]/user_desc"  maxlength="200"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/user_desc" />"/></td>
	</tr>
	<tr>
		<td align="left" >10、其他费用</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[10]@invest_code" value="10">
			<input type="hidden" name="budget/invest_detail/invest[10]/name"
			value="10、其他费用"> <input type="text"
			name="budget/invest_detail/invest[10]/total_total" 
			style="text-align: right; width: 100px;" id="total_total_10"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','total_1,total_2,total_3,total_4,total_5,total_6,total_7,total_8,total_9,total_10','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/total_total" />" />
		</td>
		
		<td><input type="text" style="width: 90%" name="budget/invest_detail/invest[10]/user_desc"  maxlength="200"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/user_desc" />"/></td>
	</tr>
</table>


<script type="text/javascript">
$(document).ready(function() {
var prp_version=$("#prp_version").text();

if(prp_version==""||prp_version==null){
	$("#budgetsMsg").find(":input").each(function(){
	$(this).val("0.00");	
	});
	
	$("#budgetsMsg1").find(":input").each(function(){
		$(this).val("0.00");	
		});
	
	$("#fundAdds").find(":input[type!=hidden][id^=total_total]").each(function(){
		$(this).val("0.00");	
		});
}


	//$("#source_city").attr("disabled",true);
	//$("#source_area").attr("disabled",true);
	//$("#source_city").addClass("gray");
	//$("#source_area").addClass("gray");

	
});
</script>
